package com.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.enumbean.RoleStatus;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor()
@TableName("sys_role")
public class SysRole extends BaseBean {

//    CREATE TABLE sys_role (
//            id INT PRIMARY KEY AUTO_INCREMENT,
//            role_name VARCHAR(30) UNIQUE NOT NULL COMMENT '角色名称',
//    role_key VARCHAR(100) NOT NULL COMMENT '角色权限字符串',
//    status ENUM('启用','停用') DEFAULT '启用',
//    create_at DATETIME DEFAULT CURRENT_TIMESTAMP,
//    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
//) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
@TableId(type= IdType.AUTO)
    private Integer id;
    private String role_name;
    private String role_key;
    private RoleStatus status;

}
